package org.assistant.csp.domain;

import java.sql.SQLException;
import java.util.List;

import org.assistant.common.exception.ImplementNotFoundException;
import org.assistant.common.utils.ClassUtils;
import org.assistant.csp.dao.MenuDao;
import org.assistant.csp.data.Menu;

public class MenuDomainImpl implements MenuDomain {
	private MenuDao menuDao;

	public MenuDomainImpl() throws ImplementNotFoundException {
		menuDao = (MenuDao) ClassUtils.getInterfaceImplement(MenuDao.class);
	}

	/**
	 * 获取所有菜单
	 * 
	 * @return
	 * @throws SQLException
	 */
	public List<Menu> getAllMenus() throws SQLException {
		return this.menuDao.getAllMenus();
	}
}
